<%@ page language="java" import="org.apache.commons.lang.StringUtils" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="up7.XDebug" %>
<%@ page import="java.net.URLEncoder" %>
<%
    out.clear();
    /*
        更新记录：
            2023-03-01 创建

        JSON格式化工具：http://tool.oschina.net/codeformat/json
    */
    String uid = request.getParameter("uid");
    String cbk = request.getParameter("callback");//jsonp

    if(! StringUtils.isBlank(uid) )
    {
        String json = "";

        if(!StringUtils.isBlank(json))
        {
            json = URLEncoder.encode(json,"utf-8");
            json = json.replace("+","%20");
            XDebug.Output("编码后的JSON",json);
            out.write( cbk + "({\"value\":\""+json + "\"})" );
            return;
        }
    }
    out.write(cbk + "({\"value\":null})");
%>